<template>
    <!-- 短信 -->
    <entity-manager :fields="fields" :queryFields="queryFields" apiPrefix="/base/phone-message" :tree="false" ref="entityManagerRef" :params="params"
                    operationsWidth="230px">
    </entity-manager>
</template>

<script setup>

import { ref } from "vue"

const fields = [
	{label: "手机号", prop: "phone", max: 255},
	{label: "模板", prop: "template", max: 255},
	{label: "参数", prop: "params", max: 255},
	{label: "发送结果，OK为成功", prop: "result", max: 255},
	{label: "发送失败时异常码", prop: "message", max: 255},
	{label: "回执id", prop: "bizId", max: 64},
	{label: "请求id", prop: "requestId", max: 64},
	{label: "扩展信息", prop: "extInfo", max: 255},
    {label: "添加时间", prop: "createTime", width: "160px", system: true},
    {label: "修改时间", prop: "updateTime", width: "160px", system: true}
]
const queryFields = []
const entityManagerRef = ref()
const params = ref({})

function reload() {
    entityManagerRef.value.reload()
}
</script>